package com.tutorialspoint;

import javax.annotation.*;

public class HelloWorld {
   private String message1;
   private String message2;
   
   public void setMessage1(String message){
      this.message1  = message;
   }

   public void setMessage2(String message){
	      this.message2  = message;
	   }
   
   public void getMessage1(){
      System.out.println("Your Message1 : " + message1);
   }
   
   public void getMessage2(){
	      System.out.println("Your Message2: " + message2);
	   }
   @PostConstruct
   public void init_11(){
	   System.out.println("Bean is going through init. helloWorld");  
   }
   
   @PreDestroy
   public void destroy_11(){
	   System.out.println("Bean will destroy now. helloWorld");
   }
   
}